
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGPointChunk.h>
#include <OpenSG/OSGPointChunkBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_PointChunk_dump_overloads_0_2, dump, 0, 2)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_PointChunk_activate_overloads_1_2, activate, 1, 2)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_PointChunk_changeFrom_overloads_2_3, changeFrom, 2, 3)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_PointChunk_deactivate_overloads_1_2, deactivate, 1, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_PointChunk()
{
    scope* osg_PointChunkBase_scope = new scope(
    class_< osg::PointChunkBase, bases< osg::StateChunk > , boost::noncopyable >("PointChunkBase", no_init)
//        .def_readonly("SizeFieldMask", &osg::PointChunkBase::SizeFieldMask)
//        .def_readonly("SmoothFieldMask", &osg::PointChunkBase::SmoothFieldMask)
//        .def_readonly("MinSizeFieldMask", &osg::PointChunkBase::MinSizeFieldMask)
//        .def_readonly("MaxSizeFieldMask", &osg::PointChunkBase::MaxSizeFieldMask)
//        .def_readonly("ConstantAttenuationFieldMask", &osg::PointChunkBase::ConstantAttenuationFieldMask)
//        .def_readonly("LinearAttenuationFieldMask", &osg::PointChunkBase::LinearAttenuationFieldMask)
//        .def_readonly("QuadraticAttenuationFieldMask", &osg::PointChunkBase::QuadraticAttenuationFieldMask)
//        .def_readonly("FadeThresholdFieldMask", &osg::PointChunkBase::FadeThresholdFieldMask)
//        .def_readonly("SpriteFieldMask", &osg::PointChunkBase::SpriteFieldMask)
//        .def_readonly("RModeFieldMask", &osg::PointChunkBase::RModeFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::PointChunkBase::MTInfluenceMask)
        .def("getClassType", &osg::PointChunkBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::PointChunkBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::PointChunkBase::*)() )&osg::PointChunkBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::PointChunkBase::*)() const)&osg::PointChunkBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::PointChunkBase::getContainerSize)
        //.def("getSize", (osg::Real32& (osg::PointChunkBase::*)() )&osg::PointChunkBase::getSize, return_value_policy< copy_const_reference >())
        .def("getSize", (const osg::Real32& (osg::PointChunkBase::*)() const)&osg::PointChunkBase::getSize, return_value_policy< copy_const_reference >())
        //.def("getSmooth", (bool& (osg::PointChunkBase::*)() )&osg::PointChunkBase::getSmooth, return_value_policy< copy_const_reference >())
        .def("getSmooth", (const bool& (osg::PointChunkBase::*)() const)&osg::PointChunkBase::getSmooth, return_value_policy< copy_const_reference >())
        //.def("getMinSize", (osg::Real32& (osg::PointChunkBase::*)() )&osg::PointChunkBase::getMinSize, return_value_policy< copy_const_reference >())
        .def("getMinSize", (const osg::Real32& (osg::PointChunkBase::*)() const)&osg::PointChunkBase::getMinSize, return_value_policy< copy_const_reference >())
        //.def("getMaxSize", (osg::Real32& (osg::PointChunkBase::*)() )&osg::PointChunkBase::getMaxSize, return_value_policy< copy_const_reference >())
        .def("getMaxSize", (const osg::Real32& (osg::PointChunkBase::*)() const)&osg::PointChunkBase::getMaxSize, return_value_policy< copy_const_reference >())
        //.def("getConstantAttenuation", (osg::Real32& (osg::PointChunkBase::*)() )&osg::PointChunkBase::getConstantAttenuation, return_value_policy< copy_const_reference >())
        .def("getConstantAttenuation", (const osg::Real32& (osg::PointChunkBase::*)() const)&osg::PointChunkBase::getConstantAttenuation, return_value_policy< copy_const_reference >())
        //.def("getLinearAttenuation", (osg::Real32& (osg::PointChunkBase::*)() )&osg::PointChunkBase::getLinearAttenuation, return_value_policy< copy_const_reference >())
        .def("getLinearAttenuation", (const osg::Real32& (osg::PointChunkBase::*)() const)&osg::PointChunkBase::getLinearAttenuation, return_value_policy< copy_const_reference >())
        //.def("getQuadraticAttenuation", (osg::Real32& (osg::PointChunkBase::*)() )&osg::PointChunkBase::getQuadraticAttenuation, return_value_policy< copy_const_reference >())
        .def("getQuadraticAttenuation", (const osg::Real32& (osg::PointChunkBase::*)() const)&osg::PointChunkBase::getQuadraticAttenuation, return_value_policy< copy_const_reference >())
        //.def("getFadeThreshold", (osg::Real32& (osg::PointChunkBase::*)() )&osg::PointChunkBase::getFadeThreshold, return_value_policy< copy_const_reference >())
        .def("getFadeThreshold", (const osg::Real32& (osg::PointChunkBase::*)() const)&osg::PointChunkBase::getFadeThreshold, return_value_policy< copy_const_reference >())
        //.def("getSprite", (bool& (osg::PointChunkBase::*)() )&osg::PointChunkBase::getSprite, return_value_policy< copy_const_reference >())
        .def("getSprite", (const bool& (osg::PointChunkBase::*)() const)&osg::PointChunkBase::getSprite, return_value_policy< copy_const_reference >())
        //.def("getRMode", (GLenum& (osg::PointChunkBase::*)() )&osg::PointChunkBase::getRMode, return_value_policy< copy_const_reference >())
        .def("getRMode", (const GLenum& (osg::PointChunkBase::*)() const)&osg::PointChunkBase::getRMode, return_value_policy< copy_const_reference >())
        .def("setSize", &osg::PointChunkBase::setSize)
        .def("setSmooth", &osg::PointChunkBase::setSmooth)
        .def("setMinSize", &osg::PointChunkBase::setMinSize)
        .def("setMaxSize", &osg::PointChunkBase::setMaxSize)
        .def("setConstantAttenuation", &osg::PointChunkBase::setConstantAttenuation)
        .def("setLinearAttenuation", &osg::PointChunkBase::setLinearAttenuation)
        .def("setQuadraticAttenuation", &osg::PointChunkBase::setQuadraticAttenuation)
        .def("setFadeThreshold", &osg::PointChunkBase::setFadeThreshold)
        .def("setSprite", &osg::PointChunkBase::setSprite)
        .def("setRMode", &osg::PointChunkBase::setRMode)
        .def("getBinSize", &osg::PointChunkBase::getBinSize)
        .def("copyToBin", &osg::PointChunkBase::copyToBin)
        .def("copyFromBin", &osg::PointChunkBase::copyFromBin)
        .def("create", &osg::PointChunkBase::create)
        .def("createEmpty", &osg::PointChunkBase::createEmpty)
        .def("shallowCopy", &osg::PointChunkBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("MinSizeFieldId") = (int)osg::PointChunkBase::MinSizeFieldId;
    scope().attr("LinearAttenuationFieldId") = (int)osg::PointChunkBase::LinearAttenuationFieldId;
    scope().attr("FadeThresholdFieldId") = (int)osg::PointChunkBase::FadeThresholdFieldId;
    scope().attr("NextFieldId") = (int)osg::PointChunkBase::NextFieldId;
    scope().attr("SmoothFieldId") = (int)osg::PointChunkBase::SmoothFieldId;
    scope().attr("MaxSizeFieldId") = (int)osg::PointChunkBase::MaxSizeFieldId;
    scope().attr("QuadraticAttenuationFieldId") = (int)osg::PointChunkBase::QuadraticAttenuationFieldId;
    scope().attr("SpriteFieldId") = (int)osg::PointChunkBase::SpriteFieldId;
    scope().attr("SizeFieldId") = (int)osg::PointChunkBase::SizeFieldId;
    scope().attr("RModeFieldId") = (int)osg::PointChunkBase::RModeFieldId;
    scope().attr("ConstantAttenuationFieldId") = (int)osg::PointChunkBase::ConstantAttenuationFieldId;

    delete osg_PointChunkBase_scope;

    class_< osg::PointChunk, bases< osg::PointChunkBase > , boost::noncopyable, osg::PointChunkRefPtr >("PointChunk", no_init)
        .def("getStaticClassId", &osg::PointChunk::getStaticClassId)
        .def("changed", &osg::PointChunk::changed)
        .def("dump", &osg::PointChunk::dump, osg_PointChunk_dump_overloads_0_2())
        .def("activate", &osg::PointChunk::activate, osg_PointChunk_activate_overloads_1_2())
        .def("changeFrom", &osg::PointChunk::changeFrom, osg_PointChunk_changeFrom_overloads_2_3())
        .def("deactivate", &osg::PointChunk::deactivate, osg_PointChunk_deactivate_overloads_1_2())
        .def("isTransparent", &osg::PointChunk::isTransparent)
        .def("switchCost", &osg::PointChunk::switchCost)
        .staticmethod("getStaticClassId")
        //.def( self < other< osg::StateChunk >() )
        //.def( self == other< osg::StateChunk >() )
        //.def( self != other< osg::StateChunk >() )
    ;


    register_ptr_to_python<osg::PointChunkPtr>();
    implicitly_convertible<osg::PointChunkRefPtr, osg::PointChunkPtr>();
    implicitly_convertible<osg::PointChunkPtr, osg::StateChunkPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::PointChunkPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::PointChunkPtr>);
}

